iptables examples¶
-A INPUT -p tcp -m multiport --dports 80,443 -s 192.168.0.0/16,172.16.0.0/16 -j ACCEPT -A INPUT -p tcp -m multiport --dports 80,443 -j DROP
-A INPUT -p tcp -m multiport --dports 80,443 -s 192.168.0.0/16,172.16.0.0/16 -j ACCEPT -A INPUT -p tcp -m multiport --dports 80,443 -j DROP